package org.example;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * Hello world!
 *
 */

// 配置类
@AutoConfiguration
@ComponentScan("org.example")
// 判断类是否存在
@ConditionalOnClass(DispatcherServlet.class)
// 判断配置参数  , 只有存在 enable 该, 即开启
@ConditionalOnProperty(prefix = "mystarter", name = "enable")
public class App {

}
